Part Number Hot Search : 
P1201 SPLSI1 CX162 300A28E4 150CT 1N4751A FDH1040B VXR100
Product Description
Full Text Search
 

To Download DS1340U Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  i 2 c rtc with trickle charger ds1340 for pricing, delivery, and ordering information, please contact maxim direct at 1-888-629-4642, or visit maxim integrated? website at www.maximintegrated.com. general description the ds1340 is a real-time clock (rtc)/calendar that is pin compatible and functionally equivalent to the st m41t00, including the software clock calibration. the device additionally provides trickle-charge capability on the v backup pin, a lower timekeeping voltage, and an oscillator stop flag. block access of the register map is identical to the st device. two additional regis- ters, which are accessed individually, are required for the trickle charger and flag. the clock/calendar pro- vides seconds, minutes, hours, day, date, month, and year information. a built-in power-sense circuit detects power failures and automatically switches to the back- up supply. reads and writes are inhibited while the clock continues to run. the device is programmed seri- ally through an i 2 c bidirectional bus. applications portable instruments point-of-sale equipment medical equipment telecommunications features ? enhanced second source for the st m41t00 ? available in a surface-mount package with an integrated crystal (ds1340c) ? fast (400khz) i 2 c interface ? software clock calibration ? rtc counts seconds, minutes, hours, day, date, month, and year ? automatic power-fail detect and switch circuitry ? trickle-charge capability ? low timekeeping voltage down to 1.3v ? three operating voltage ranges (1.8v, 3v, and 3.3v) ? oscillator stop flag ? available in 8-pin sop or so packages ? underwriters laboratories (ul) recognized ordering information 4 cpu v cc v cc v cc 5 6 8 12 sda scl gnd x2x1 v cc c1 r pu r pu crystal ft/out v backup 3 7 r pu = t r / c b ds1340 typical operating circuit part temp range pin- package top mark ? ds1340z-18+ -40c to +85c 8 so (0.150in) d1340-18 ds1340z-3+ -40c to +85c 8 so (0.150in) ds1340-3 ds1340z-33+ -40c to +85c 8 so (0.150in) d134033 DS1340U-18+ -40c to +85c 8 sop 1340 -18 DS1340U-3+ -40c to +85c 8 sop 1340 -3 DS1340U-33+ -40c to +85c 8 sop 1340 -33 ds1340c-18# -40c to +85c 16 so ds1340c-18 ds1340c-3# -40c to +85c 16 so ds1340c-3 ds1340c-33# -40c to +85c 16 so ds1340c-33 pin configurations appear at end of data sheet. + denotes a lead(pb)-free/rohs-compliant package. # denotes a rohs-compliant device that may include lead(pb) that is exempt under rohs requirements. the lead finish is jesd97 category e3, and is compatible with both lead-based and lead-free soldering processes. ? a "+" anywhere on the top mark denotes a lead(pb)-free device. a "#" denotes a rohs-compliant device. 19-5578; rev 8; 4/13
i 2 c rtc with trickle charger 2 maxim integrated ds1340 absolute maximum ratings recommended dc operating conditions (v cc = v cc min to v cc max , t a = -40? to +85?, unless otherwise noted. typical values are at v cc = 3.3v, t a = +25?, unless otherwise noted.) (note 1) stresses beyond those listed under ?bsolute maximum ratings?may cause permanent damage to the device. these are stress ratings only, and functional operation of the device at these or any other conditions beyond those indicated in the operational sections of the specifications is not implied. exposure to absolute maximum rating conditions for extended periods may affect device reliability. voltage range on v cc or v backup pins relative to ground.............................................-0.3v to +6.0v voltage range on sda, scl, and ft/out relative to ground..................................-0.3v to (v cc + 0.3v) operating temperature range ...........................-40? to +85? storage temperature range .............................-55? to +125? lead temperature (soldering, 10s) .................................+260? soldering temperature (reflow) .......................................+260? parameter symbol conditions min typ max units ds1340-18 1.71 1.8 5.5 ds1340-3 2.7 3.0 5.5 supply voltage (note 2) v cc ds1340-33 2.97 3.3 5.5 v input logic 1 (sda, scl) v ih (note 2) 0.7 x v cc v cc + 0.3 v input logic 0 (sda, scl) v il (note 2) -0.3 +0.3 x v cc v supply voltage, pullup (ft/out, sda, scl), v cc = 0v v pu (note 2) 5.5 v ds1340-18 1.3 3.7 ds1340-3 1.3 3.7 backup supply voltage (note 2) v backup ds1340-33 1.3 5.5 v r1 (notes 3, 4) 250 r2 (note 5) 2000 trickle-charge current-limiting resistors r3 (note 6) 4000  ds1340-18 1.51 1.6 1.71 ds1340-3 2.45 2.6 2.7 power-fail voltage (note 2) v pf ds1340-33 2.70 2.88 2.97 v input leakage (scl, clk) i li -1 +1 a i/o leakage (sda, ft/out) i lo -1 +1 a v cc > 2v; v ol = 0.4v 3.0 sda logic 0 output i olsda 1.7v < v cc < 2v; v ol = 0.2 x v cc 3.0 ma v cc > 2v; v ol = 0.4v 3.0 1.7v < v cc < 2v; v ol = 0.2 x v cc 3.0 ma ft/out logic 0 output i olsqw 1.3v < v cc < 1.7v; v ol = 0.2x v cc 250 a ds1340-18; v cc = 1.89v 72 150 ds1340-3; v cc = 3.3v 108 200 active supply current (note 7) i cca ds1340-33; v cc = 5.5v 192 300 a ds1340-18; v cc = 1.89v 60 100 ds1340-3; v cc = 3.3v 81 125 standby current (note 8) i ccs ds1340-33; v cc = 5.5v 100 150 a v backup leakage current i backuplkg v backup = 3.7v 100 na
i 2 c rtc with trickle charger maxim integrated 3 ds1340 dc electrical characteristics (v cc = 0v, v backup = 3.7v, t a = -40? to +85?, unless otherwise noted.) (note 1) parameter symbol conditions min typ max units i backup1 osc on, ft = 0 (note 9) 800 1150 i backup2 osc on, ft = 1 (note 9) 850 1250 v backup current i backup3 osc on, ft = 0, v backup = 3.0v, t a = +25c (notes 9, 10) 800 1000 na v backup data-retention current i backupdr osc off 25.0 100 na ac electrical characteristics (v cc = v cc min to v cc max , t a = -40? to +85?, unless otherwise noted.) (notes 1,14, figure 1) parameter symbol conditions min typ max units standard mode 0 100 scl clock frequency f scl fast mode 100 400 khz standard mode 4.7 bus free time between stop and start conditions t buf fast mode 1.3 s standard mode 4.0 hold time (repeated) start condition (note 11) t hd:sta fast mode 0.6 s standard mode 4.7 low period of scl clock t low fast mode 1.3 s standard mode 4.0 high period of scl clock t high fast mode 0.6 s standard mode 0 0.9 data hold time (notes 12, 13) t hd:dat fast mode 0 0.9 s standard mode 250 data setup time (note 14) t su:dat fast mode 100 ns standard mode 4.7 start setup time t su:sta fast mode 0.6 s standard mode 20 + 0.1c b 1000 rise time of sda and scl signals (note 15) t r fast mode 20 + 0.1c b 300 ns standard mode 20 + 0.1c b 300 fall time of sda and scl signals (note 15) t f fast mode 20 + 0.1c b 300 ns standard mode 4.7 setup time for stop condition t su:sto fast mode 0.6 s capacitive load for each bus line c b (note 15) 400 pf i/o capacitance (scl, sda) c i/o 10 pf pulse width of spikes that must be suppressed by the input filter t sp fast mode 30 ns oscillator stop flag (osf) delay t osf (note 16) 100 ms
i 2 c rtc with trickle charger 4 maxim integrated ds1340 power-up/power-down characteristics (t a = -40? to +85?) (figure 2) parameter symbol conditions min typ max units recovery at power-up t rec (note 17) 2 ms v cc fall time; v pf(max) to v pf(min) t vccf 300 ? v cc rise time; v pf(min) to v pf(max) t vccr 0 s warning: under no circumstances are negative undershoots, of any amplitude, allowed when device is in battery-backup mode. note 1: limits at -40? are guaranteed by design and not production tested. note 2: all voltages are referenced to ground. note 3: measured at v cc = typ, v backup = 0v, register 08h = a5h. note 4: the use of the 250 trickle-charge resistor is not allowed at v cc > 3.63v and should not be enabled. note 5: measured at v cc = typ, v backup = 0v, register 08h = a6h. note 6: measured at v cc = typ, v backup = 0v, register 08h = a7h. note 7: i cca ?cl clocking at max frequency = 400khz. note 8: specified with i 2 c bus inactive. note 9: measured with a 32.768khz crystal attached to the x1 and x2 pins. note 10: limits at +25? are guaranteed by design and not production tested. note 11: after this period, the first clock pulse is generated. note 12: a device must internally provide a hold time of at least 300ns for the sda signal (referred to as the v ih(min) of the scl signal) to bridge the undefined region of the falling edge of scl. note 13: the maximum t hd:dat only has to be met if the device does not stretch the low period (t low ) of the scl signal. note 14: a fast-mode device can be used in a standard-mode system, but the requirement t su:dat to 250ns must be met. this is automatically the case if the device does not stretch the low period of the scl signal. if such a device does stretch the low period of the scl signal, it must output the next data bit to the sda line t r max + t su:dat = 1000 + 250 = 1250ns before the scl line is released. note 15: c b ?otal capacitance of one bus line in pf. note 16: the parameter t osf is the period of time the oscillator must be stopped for the osf flag to be set over the 0v v cc v ccmax and 1.3v v bat 3.7v range. note 17: this delay applies only if the oscillator is enabled and running. if the oscillator is disabled or stopped, no power-up delay occurs. scl note: timing is referenced to v il(max) and v ih(min) . sda stop start repeated start t buf t hd:sta t hd:dat t su:dat t su:sto t hd:sta t sp t su:sta t high t r t f t low figure 1. data transfer on i 2 c serial bus
i 2 c rtc with trickle charger maxim integrated 5 ds1340 outputs v cc v pf(max) inputs high-z don't care valid recognized recognized valid v pf(min) t rec t r t f v pf v pf figure 2. power-up/power-down timing typical operating characteristics (v cc = +3.3v, t a = +25?, unless otherwise noted.) i ccsa vs. v cc ft = 0 ds1340 toc01 v cc (v) supply current (a) 5.0 4.5 4.0 3.5 3.0 2.5 2.0 1.5 50 100 150 200 250 0 1.0 5.5 25 50 75 100 125 150 0 i ccs vs. v cc ft = 0 ds1340 toc02 v cc (v) supply current (a) 5.04.54.03.53.02.52.01.51.0 5.5 -1.8v -3.0v -3.3v i backup1 (ft = 0) vs. v backup ds1340 toc03 450 500 550 600 650 700 750 800 850 400 v backup (v) supply current (na) 5.04.54.03.53.02.52.01.51.0 5.5 i backup2 (ft = 1) vs. v backup ds1340 toc04 450 500 550 600 650 700 750 800 850 400 v backup (v) supply current (na) 5.04.54.03.53.02.52.01.51.0 5.5 i backup3 vs. temperature ds1340 toc05 temperature (c) supply current (na) 6040 -20 0 20 500 550 600 650 700 750 800 850 -40 80 v backup = 3.0v oscillator frequency vs. supply voltage (ft x 64) ds1340 toc06 v backup (v) frequency (hz) 5.0 4.5 4.0 3.5 3.0 2.5 2.0 1.5 32768.1 32768.2 32768.3 32768.4 32768.5 32768.6 32768.0 1.0 5.5
i 2 c rtc with trickle charger 6 maxim integrated ds1340 detailed description the ds1340 is a low-power clock/calendar with a trickle charger. address and data are transferred serially through a i 2 c bidirectional bus. the clock/calendar pro- vides seconds, minutes, hours, day, date, month, and year information. the date at the end of the month is automatically adjusted for months with fewer than 31 days, including corrections for leap year. the ds1340 has a built-in power-sense circuit that detects power fail- ures and automatically switches to the backup supply. power control the power-control function is provided by a precise, temperature-compensated voltage reference and a comparator circuit that monitors the v cc level. the device is fully accessible and data can be written and read when v cc is greater than v pf . however, when v cc falls below v pf , the internal clock registers are blocked from any access. if v pf is less than v backup , the device power is switched from v cc to v backup when v cc drops below v pf . if v pf is greater than v backup , the device power is switched from v cc to v backup pin description pin 816 name function 1 x1 2 x2 connections for a standard 32.768khz quartz crystal. the internal oscillator circuitry is designed for operation with a crystal having a specified load capacitance (c l ) of 12.5pf. x1 is the input to the oscillator and can optionally be connected to an external 32. 768khz osc illator. the output of the internal oscillator, x2, is left unconnected if an external oscillator is con nected to x1. 3 14 v backup connection for a secondary power supply. for the 1.8v and 3v devices, v backup must be held between 1.3v and 3.7v for proper operation. diodes placed in series between the supply and the input pin may result in improper operation. v backup can be as high as 5.5v on the 3.3v device. this pin can be connected to a primary cell such as a lithium coin cell. additionally, this pin can be connected to a rechargeable cell or a super cap when used with the trickle-charge feature. ul recognized to ensure against reverse charging when used with a lithium battery ( www.maximintegrated.com/qa/info/ul ). 4 15 gnd ground 5 16 sda serial data input/output. sda is the data input/output for the i 2 c serial interface. the sda pin is open drain and requires an external pullup resistor. 6 1 scl serial clock input. scl is the clock input for the i 2 c interface and is used to synchronize data movement on the serial interface. 7 2 ft/out frequency test/output. this pin is used to output either a 512hz signal or the value of the out bit. when the ft bit is logic 1, the ft/out pin toggles at a 512hz rate. when the ft bit is logic 0, the ft/out pin reflects the value of the out bit. this open-drain pin requires an external pullup resistor, and operates with either v cc or v backup applied. the pullup voltage can be up to 5.5v, regardless of the voltage on v cc . if not used, this pin can be left unconnected. 8 3 v cc primary power supply. when voltage is applied within normal limits, the device is fully accessible and data can be written and read. when a backup supply is connected to the device and v cc is below v pf , reads and writes are inhibited. however, the timekeeping function conti nues unaffected by the lower input voltage. 4C13 n.c. no connection. must be connected to ground. supply condition read/write access powered by v cc < v pf , v cc < v backup no v bat v cc < v pf , v cc > v backup no v cc v cc > v pf , v cc < v backup yes v cc v cc > v pf , v cc > v backup yes v cc table 1. power control
i 2 c rtc with trickle charger maxim integrated 7 ds1340 when v cc drops below v backup . the registers are maintained from the v backup source until v cc is returned to nominal levels (table 1). after v cc returns above v pf , read and write access is allowed t rec . oscillator circuit the ds1340 uses an external 32.768khz crystal. the oscillator circuit does not require any external resistors or capacitors to operate. table 2 specifies several crys- tal parameters for the external crystal. figure 3 shows a functional schematic of the oscillator circuit. if using a crystal with the specified characteristics, the startup time is usually less than one second. clock accuracy the initial clock accuracy depends on the accuracy of the crystal and the accuracy of the match between the capacitive load of the oscillator circuit and the capaci- tive load for which the crystal was trimmed. additional error is added by crystal frequency drift caused by temperature shifts. external circuit noise coupled into the oscillator circuit can result in the clock running fast. figure 4 shows a typical pc board layout for isolating the crystal and oscillator from noise. refer to application note 58: crystal considerations with dallas real-time clocks ( www.maximinteg rated.com/rtcapps ) for detailed information. ds1340c only the ds1340c integrates a standard 32,768hz crystal into the package. typical accuracy with nominal v cc and +25? is approximately +15ppm. refer to application note 58 for information about crystal accu- racy vs. temperature. operation the ds1340 operates as a slave device on the serial bus. access is obtained by implementing a start condition and providing a device identification code fol- lowed by data. subsequent registers can be accessed sequentially until a stop condition is executed. the device is fully accessible and data can be written and read when v cc is greater than v pf . however, when v cc falls below v pf , the internal clock registers are blocked from any access. if v pf is less than v backup , the device power is switched from v cc to v backup when v cc drops below v pf . if v pf is greater than v backup , the device power is switched from v cc to v backup when v cc drops below v backup . the regis- ters are maintained from the v backup source until v cc is returned to nominal levels. the functional diagram (figure 5) shows the main elements of the serial rtc. parameter s ymbol min typ max unit s nominal frequency f o 32.768 khz series resistance esr 80 k load capacitance c l 12.5 pf table 2. crystal specifications* * the crystal, traces, and crystal input pins should be isolated from rf generating signals. refer to application note 58: crystal considerations for dallas real-time clocks for addi- tional specifications. countdown chain rtc x1 x2 c l 1 c l 2 crystal rtc registers figure 3. oscillator circuit showing internal bias network crystal x1 x2 gnd local ground plane (layer 2) figure 4. layout example
address map table 3 shows the ds1340 address map. the rtc reg- isters are located in address locations 00h to 06h, and the control register is located at 07h. the trickle-charge and flag registers are located in address locations 08h to 09h. during a multibyte access of the timekeeping registers, when the address pointer reaches 07h?he end of the clock and control register space?t wraps around to location 00h. writing the address pointer to the corresponding location accesses address locations 08h and 09h. after accessing location 09h, the address pointer wraps around to location 00h. on a i 2 c start, stop, or address pointer incrementing to location 00h, the current time is transferred to a second set of regis- ters. the time information is read from these secondary registers, while the clock may continue to run. this eliminates the need to reread the registers in case the main registers update during a read. clock and calendar the time and calendar information is obtained by read- ing the appropriate register bytes. table 3 shows the rtc registers. the time and calendar data are set or initialized by writing the appropriate register bytes. the contents of the time and calendar registers are in the binary-coded decimal (bcd) format. the day-of-week i 2 c rtc with trickle charger 8 maxim integrated ds1340 address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 function range 00h eosc 10 seconds seconds seconds 00?9 01h x 10 minutes minutes minutes 00?9 02h ceb cb 10 hours hours century/hours 0?; 00?3 03h x x x x x day day 01?7 04h x x 10 date date date 01?1 05h x x x 10 month month month 01?2 06h 10 year year year 00?9 07h out ft s cal4 cal3 cal2 cal1 cal0 control 08h tcs3 tcs2 tcs1 tcs0 ds1 ds0 rout1 rout0 trickle charger 09h osf 0 0 0 0 0 0 0 flag table 3. address map x = read/write bit note: unless otherwise specified, the state of the registers is not defined when power is first applied. serial interface and address register control logic "c" version only scl sda 512hz mux/ buffer ft/out user buffer (7 bytes) clock and calendar registers 32,768hz 1hz x1 power control v cc v backup divider and calibration circuit x2 c l c l n ds1340 figure 5. functional diagram
register increments at midnight. values that correspond to the day of week are user-defined but must be sequential (i.e., if 1 equals sunday, then 2 equals monday, and so on). illogical time and date entries result in undefined operation. bit 7 of register 0 is the enable oscillator (eosc) bit. when this bit is set to 1, the oscillator is disabled. when cleared to 0, the oscil- lator is enabled. the initial power-up value of eosc is 0. the clock can be halted whenever the timekeeping functions are not required, minimizing v bat current (i backupdr ) when v cc is not applied. location 02h is the century/hours register. bit 7 and bit 6 of the century/hours register are the century-enable bit (ceb) and the century bit (cb). setting ceb to logic 1 causes the cb bit to toggle, either from a logic 0 to a logic 1, or from a logic 1 to a logic 0, when the years register rolls over from 99 to 00. if ceb is set to logic 0, cb does not toggle. when reading or writing the time and date registers, secondary (user) buffers are used to prevent errors when the internal registers update. when reading the time and date registers, the user buffers are synchro- nized to the internal registers on any start or stop and when the register pointer rolls over to zero. the time information is read from these secondary registers while the clock continues to run. this eliminates the need to reread the registers in case the internal regis- ters update during a read. the divider chain is reset whenever the seconds regis- ter is written. write transfers occur on the acknowledge from the ds1340. once the divider chain is reset, to avoid rollover issues, the remaining time and date reg- isters must be written within one second. on a power-on reset (por), the time and date are set to 00:00:00 01/01/00 (hh:mm:ss dd/mm/yy) and the day register is set to 01. special-purpose registers the ds1340 has three additional registers (control, trickle charger, and flag) that control the rtc, trickle charger, and oscillator flag output. control register (07h) bit 7: output control (out). this bit controls the out- put level of the ft/out pin when the ft bit is set to 0. if ft = 0, the logic level on the ft/out pin is 1 if out = 1 and 0 if out = 0. the initial power-up out value is 1. bit 6: frequency test (ft). when this bit is 1, the ft/out pin toggles at a 512hz rate. when ft is written to 0, the out bit controls the state of the ft/out pin. the initial power-up value of ft is 0. bit 5: calibration sign bit (s). a logic 1 in this bit indi- cates positive calibration for the rtc. a 0 indicates negative calibration for the clock. see the clock calibration section for a detailed description of the bit operation. the initial power-up value of s is 0. bits 4 to 0: calibration bits (cal4 to cal0). these bits can be set to any value between 0 and 31 in binary form. see the clock calibration section for a detailed description of the bit operation. the initial power-up value of cal0?al4 is 0. trickle-charger register (08h) the simplified schematic in figure 6 shows the basic components of the trickle charger. the trickle-charge select (tcs) bits (bits 4?) control the selection of the trickle charger. to prevent accidental enabling, only a i 2 c rtc with trickle charger maxim integrated 9 ds1340 bit 7 tcs3 1 of 16 select note: only 1010b enables charger 1 of 2 select v cc v backup r1 250 tcs 0-3 = trickle-charger select ds 0-1 = diode select tout 0-1 = resistor select r2 2k r3 4k 1 of 3 select bit 6 tcs2 bit 5 tcs1 bit 4 tcs0 bit 3 ds1 bit 2 ds0 bit 1 rout1 bit 0 rout0 figure 6. trickle charger functional diagram
pattern on 1010 enables the trickle charger. all other patterns disable the trickle charger. the trickle charger is disabled when power is first applied. the diode- select (ds) bits (bits 2, 3) select whether or not a diode is connected between v cc and v backup . if ds is 01, no diode is selected; if ds is 10, a diode is selected. the rout bits (bits 0, 1) select the value of the resistor connected between v cc and v backup . table 3 shows the resistor selected by the resistor select (rout) bits and the diode selected by the diode select (ds) bits. warning: the rout value of 250 must not be select- ed whenever v cc is greater than 3.63v. the user determines diode and resistor selection according to the maximum current desired for battery or super cap charging (table 4). the maximum charg- ing current can be calculated as illustrated in the fol- lowing example. assume that a 3.3v system power supply is applied to v cc and a super cap is connected to v backup . also assume that the trickle charger has been enabled with a diode and resistor r2 between v cc and v backup . the maximum current i max would therefore be calculat- ed as follows: i max = (3.3v - diode drop) / r2 (3.3v - 0.7v) / 2k?1.3ma as the super cap charges, the voltage drop between v cc and v backup decreases and therefore the charge current decreases. flag register (09h) bit 7: oscillator stop flag (osf). a logic 1 in this bit indicates that the oscillator has stopped or was stopped for some time period and may be used to judge the validity of the clock and calendar data. this bit is edge triggered and is set to logic 1 when the internal circuitry senses that the oscillator has transi- tioned from a normal run state to a stop condition. the following are examples of conditions that can cause the osf bit to be set: 1) the first time power is applied. 2) the voltages present on v cc and v backup are insufficient to support oscillation. 3) the eosc bit is set to 1, disabling the oscillator. 4) external influences on the crystal (e.g., noise, leakage). the osf bit remains at logic 1 until written to logic 0. it can only be written to logic 0. attempting to write osf to logic 1 leaves the value unchanged. bits 6 to 0: all other bits in the flag register read as 0 and cannot be written. clock calibration the ds1340 provides a digital clock calibration feature to allow compensation for crystal and temperature vari- ations. the calibration circuit adds or subtracts counts from the oscillator divider chain at the divide-by-256 stage. the number of pulses blanked (subtracted for negative calibration) or inserted (added for positive cal- ibration) depends upon the value loaded into the five calibration bits (cal4?al0) located in the control reg- ister. adding counts speeds the clock up and subtract- ing counts slows the clock down. the calibration bits can be set to any value between 0 and 31 in binary form. bit 5 of the control register, s, is the sign bit. a value of 1 for the s bit indicates positive calibration, while a value of 0 represents negative cali- bration. calibration occurs within a 64-minute cycle. the first 62 minutes in the cycle can, once per minute, i 2 c rtc with trickle charger 10 maxim integrated ds1340 tcs3 tcs2 tcs1 tcs0 ds1 ds0 rout1 rout0 function x x x x 0 0 x x disabled x x x x 1 1 x x disabled xxxxxx00 disabled 1 0 1 0 0 1 0 1 no diode, 250 resistor 1 0 1 0 1 0 0 1 one diode, 250 resistor 1 0 1 0 0 1 1 0 no diode, 2k resistor 1 0 1 0 1 0 1 0 one diode, 2k resistor 1 0 1 0 0 1 1 1 no diode, 4k resistor 1 0 1 0 1 0 1 1 one diode, 4k resistor 0 0 0 0 0 0 0 0 power-on reset value table 4. trickle-charge register
have a one-second interval where the calibration is per- formed. negative calibration blanks 128 cycles of the 32,768hz oscillator, slowing the clock down. positive calibration inserts 256 cycles of the 32,768hz oscillator, speeding the clock up. if a binary 1 is loaded into the calibration bits, only the first two minutes in the 64- minute cycle are modified. if a binary 6 is loaded, the first 12 minutes are affected, and so on. therefore, each calibration step either adds 512 or subtracts 256 oscillator cycles for every 125,829,120 actual 32,678hz oscillator cycles (64 minutes). this equates to +4.068ppm or -2.034ppm of adjustment per calibration step. if the oscillator runs at exactly 32,768hz, each of the 31 increments of the calibration bits would repre- sent +10.7 or -5.35 seconds per month, corresponding to +5.5 or -2.75 minutes per month. for example, if using the ft function, a reading of 512.01024hz would indicate a +20ppm oscillator fre- quency error, requiring a -10(00 1010) value to be loaded in the s bit and the five calibration bits. note: setting the calibration bits does not affect the fre- quency test output frequency. also note that writing to the control register resets the divider chain. i 2 c serial data bus the ds1340 supports a bidirectional i 2 c bus and data transmission protocol. a device that sends data onto the bus is defined as a transmitter and a device receiv- ing data as a receiver. the device that controls the message is called a master. the devices that are con- trolled by the master are slaves. a master device that generates the serial clock (scl), controls the bus access, and generates the start and stop condi- tions must control the bus. the ds1340 operates as a slave on the i 2 c bus. connections to the bus are made through the open-drain i/o lines sda and scl. within the bus specifications a standard mode (100khz max clock rate) and a fast mode (400khz max clock rate) are defined. the ds1340 works in both modes. the following bus protocol has been defined (figure 7): data transfer can be initiated only when the bus is not busy. during data transfer, the data line must remain stable whenever the clock line is high. changes in the data line while the clock line is high are inter- preted as control signals. accordingly, the following bus conditions have been defined: bus not busy: both data and clock lines remain high. start data transfer: a change in the data line? state from high to low, while the clock line is high, defines a start condition. stop data transfer: a change in the data line? state from low to high, while the clock line is high, defines a stop condition. data valid: the data line? state represents valid data when, after a start condition, the data line is stable for the duration of the high period of the clock signal. the data on the line must be changed during the low period of the clock signal. there is one clock pulse per bit of data. each data transfer is initiated with a start condi- tion and terminated with a stop condition. the number of data bytes transferred between the start and stop conditions is not limited, and is i 2 c rtc with trickle charger maxim integrated 11 ds1340 sda scl idle 1? 8 9 1? 8 9 1? 8 9 start condition stop condition repeated start slave address r/w ack ack data ack/ nack data msb first msb lsb msb lsb repeated if more bytes are transferred figure 7. i 2 c data transfer overview
i 2 c rtc with trickle charger 12 maxim integrated ds1340 determined by the master device. the information is transferred byte-wise and each receiver acknowledges with a ninth bit. acknowledge: each receiving device, when addressed, is obliged to generate an acknowl- edge after the reception of each byte. the master device must generate an extra clock pulse that is associated with this acknowledge bit. a device that acknowledges must pull down the sda line during the acknowledge clock pulse in such a way that the sda line is stable low during the high period of the acknowledge-related clock pulse. setup and hold times must be taken into account. a master must signal an end of data to the slave by not generating an acknowledge bit on the last byte that has been clocked out of the slave. in this case, the slave must leave the data line high to enable the master to generate the stop condition. figures 8 and 9 detail how data transfer is accom- plished on the i 2 c bus. depending upon the state of the r/w bit, two types of data transfer are possible: data transfer from a master transmitter to a slave receiver. the first byte transmitted by the master is the slave address. next follows a num- ber of data bytes. the slave returns an acknowl- edge bit after each received byte. data transfer from a slave transmitter to a mas- ter receiver. the master transmits the first byte (the slave address). the slave then returns an acknowl- edge bit. next follows a number of data bytes trans- mitted by the slave to the master. the master returns an acknowledge bit after all received bytes other than the last byte. at the end of the last received byte, a not acknowledge is returned. the master device generates all the serial clock pulses and the start and stop conditions. a transfer is ended with a stop condition or with a repeated start condition. since a repeated start condition is also the beginning of the next serial transfer, the bus is not released. the ds1340 can operate in the following two modes: slave receiver mode (write mode): serial data and clock are received through sda and scl. after each byte is received, an acknowledge bit is transmitted. start and stop conditions are recog- nized as the beginning and end of a serial trans- fer. hardware performs address recognition after reception of the slave address and direction bit. the slave address byte is the first byte received after the master generates the start condition. the slave address byte contains the 7-bit ds1340 address, which is 1101000, followed by the direc- tion bit (r/w), which is 0 for a write. after receiving and decoding the slave address byte, the ds1340 outputs an acknowledge on sda. after the ds1340 acknowledges the slave address + write bit, the master transmits a word address to the ds1340. this sets the register pointer on the ds1340, with the ds1340 acknowledging the transfer. the master can then transmit zero or more bytes of data, with the ds1340 acknowledg- ing each byte received. the register pointer incre- ments after each data byte is transferred. the master generates a stop condition to terminate the data write. slave transmitter mode (read mode): the first byte is received and handled as in the slave receiver mode. however, in this mode, the direc- tion bit indicates that the transfer direction is reversed. the ds1340 transmits serial data on sda while the serial clock is input on scl. start and stop conditions are recognized as the begin- ning and end of a serial transfer. hardware per- forms address recognition after reception of the slave address and direction bit. the slave address byte is the first byte received after the master gen- erates the start condition. the slave address byte contains the 7-bit ds1340 address, which is 1101000, followed by the direction bit (r/w ), which is 1 for a read. after receiving and decoding the slave address byte, the ds1340 outputs an acknowledge on sda. the ds1340 then begins to transmit data starting with the register address pointed to by the register pointer. if the register pointer is not written to before the initiation of a read mode, the first address that is read is the last one stored in the register pointer. the ds1340 must receive a not acknowledge to end a read.
i 2 c rtc with trickle charger maxim integrated 13 ds1340 master to slave slave to master ... a xxxxxxxx a 1101000 s 0 xxxxxxxx a xxxxxxxx a xxxxxxxx a p figure 8. data write?lave receiver mode ... a xxxxxxxx a 1101000 s 1 xxxxxxxx a xxxxxxxx a xxxxxxxx a p s - start a - acknowledge (ack) p - stop a - not acknowledge (nack) r/w - read/write or direction bit address data transferred (x + 1 bytes + acknowledge) note: last data byte is followed by a nack. master to slave slave to master figure 9. data read?lave transmitter mode s - start sr - repeated start a - acknowledge (ack) p - stop a - not acknowledge (nack) r/w - read/write or direction bit address a xxxxxxxx a 1101000 1101000 s sr 0 a 1 data transferred (x + 1 bytes + acknowledge) note: last data byte is followed by a nack. master to slave slave to master a xxxxxxxx xxxxxxxx a xxxxxxxx a xxxxxxxx a p ... figure 10. data write/read (write pointer, then read)?lave receive and transmit
i 2 c rtc with trickle charger 14 maxim integrated ds1340 chip information process: cmos substrate connected to ground thermal information theta-ja: 170?/w (0.150in so) theta-jc: 40?/w (0.150in so) theta-ja: 221?/w (?op) theta-jc: 39?/w (?op) theta-ja: 89.6?/w (0.300in so) theta-jc: 24.8?/w (0.300in so) handling, pc board layout, and assembly the ds1340c package contains a quartz tuning-fork crystal. pick-and-place equipment may be used, but precautions should be taken to ensure that excessive shocks are avoided. exposure to reflow is limited to 2 times maximum. ultrasonic cleaning should be avoided to prevent damage to the crystal. avoid running signal traces under the package, unless a ground plane is placed between the package and the signal line. all n.c. (no connect) pins must be connect- ed to ground. moisture-sensitive packages are shipped from the facto- ry dry-packed.handling instructions listed on the pack- age label must be followed to prevent damage during reflow. refer to the ipc/jedec j-std-020 standard for moisture-sensitive device (msd) classifications. 1 2 3 4 8 7 6 5 v cc ft/out scl sda v backup gnd x2 x1 top view so, sop 16 15 14 13 12 11 10 9 1 2 3 4 5 6 7 8 scl sda gnd v backup n.c. n.c. n.c. n.c. n.c. so (300 mils) ft/out v cc n.c. n.c. n.c. n.c. n.c. ds1340 ds1340c pin configurations package type package code outline no. land pattern no. 8 so (150 mils) s8+2 21-0041 90-0096 8 ?op u8+1 21-0036 90-0092 16 so (300 mils) w16#h2 21-0042 90-0107 package information for the latest package outline information and land patterns (footprints), go to www.maximintegrated.com/packages . note that a ?? ?? or ??in the package code indicates rohs status only. package drawings may show a different suffix character, but the drawing pertains to the package regardless of rohs status.
i 2 c rtc with trickle charger maxim integrated 15 ds1340 revision history revision number revision date description pages changed 0 6/03 initial release. changed 2-wire to i 2 c throughout the data sheet. all added ul recognition info bullet to the features section and to the v backup pin description. 1, 6 added the i/o capacitance (scl, sda) parameter (c i/o ) to the ac electrical characteristics table. 2 1 7/04 added sda, scl and v cc = 0v to the supply voltage, pullup (ft/out) parameter and changed the symbol from v ih to v pu in the recommended dc operating conditions table; in the dc electrical characteristics table, changed the oscillator current parameter to v backup current. 3 added the integrated-crystal and lead-free packages to the ordering information table; added the integrated-crystal packages to the features , pin configurations , pin description . 1, 6 in table 1, added increased crystal esr with increased supply minimum voltage requirement. 6 added the ds1340c only section. 7 updated figure 5 to also show the c version crystal. 7 added the handling, pc board layout, and assembly section. 12 2 12/04 added the integrated-crystal package theta-ja and theta-jc information to the thermal information section. 13 3 11/05 updated the ordering information table to correct lead-free/rohs packages. 1 in the general description section, indicated that the time and date function continues while powered by v backup . 1 updated the typical operating circuit by removing pin numbers and adding a bypass capacitor. 1 in the pin description , updated the v backup description to indicate that no diodes should be placed between the battery and pin and added the ul link; changed the v cc description. 6 added the power control section and new table 1. 6 in the handling, pc board layout, and assembly section, added solder reflow information for the rohs so package. 13 4 3/06 added package information table. 14 removed leaded part numbers from the ordering information table. 1 removed the t rpu parameter and rst waveform from figure 2. replaced t rst with t rec . 5 in the typical operating characteristics section, updated/changed the ft vs. v backup graph to oscillator frequency vs. supply voltage (ft x 64). 5 in the pin description , added pullup voltage information to the sda, scl, and ft/out descriptions. 6 updated figure 5. 8 in the clock and calendar section, added text explaining the use of eosc to halt the oscillator. 9 5 8/08 replaced figure 7 with an updated version; changed figures 8 and 9 and added figure 10 with more comprehensive i 2 c figures. 13
i 2 c rtc with trickle charger ds1340 maxim integrated cannot assume responsibility for use of any circuitry other than circuitry entirely embodied in a maxim integrated product. no circuit patent licenses are implied. maxim integrated reserves the right to change the circuitry and specifications without notice at any time. the parametric values (min and max limits) shown in the electrical characteristics table are guaranteed. other parametric values quoted in this data sheet are provided for guidance. 16 maxim integrated 160 rio robles, san jose, ca 95134 usa 1-408-601-1000 2013 maxim integrated products, inc. maxim integrated and the maxim integrated logo are trademarks of maxim integrated products, inc. revision history (continued) revision number revision date description pages changed updated the top mark information in the ordering information table. 1 updated the soldering information in the absolute maximum ratings section. 2 updated the sda and scl pin descriptions in the pin description table. 6 increased esr from 45,60k  (max) to 80k  (max) in table 2. 7 6 10/10 updated the package information table. 14 7 8/11 raised v cc(max) limits for the -18 and -3 versions from 1.89v and 3.3v to 5.5v to provide wide voltage functional operation; reorganized the ec tables and notes 2, 3 8 4/13 clarified v backup in absolute maximum ratings and updated clock calibration section 2, 9


▲Up To Search▲   

 
Price & Availability of DS1340U

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X